package org.qqcui.designpattern.patterns.watcher.traditional;


/**
 * 传统方式的通知客户端
 *
 * @author cuiqingqiang
 * @version 1.0
 * @date 2022/5/6 15:04
 **/
public class Client {

    public static void main(String[] args) {
        CurrentConditions currentConditions = new CurrentConditions();
        WeatherData weatherData = new WeatherData(currentConditions);

        weatherData.setData(10,30, 50);
        System.out.println("============天气变化情况===============");
        weatherData.setData(40, 160, 20);
    }
}
